<style type="text/css">
#radientbox1 {
    -moz-border-radius-bottomright:5px;
	-moz-border-radius-topleft:5px;
	-webkit-border-bottom-right-radius:5px;
	-webkit-border-top-left-radius:5px;
	background-image:url(images/ProductListBgs1.jpg);
	background-repeat:repeat-x;
    /*background-image: -moz-linear-gradient(center bottom , #FFFFFF 15%, #E1F1FC 85%);
    border-color: #BFE7FF #BFE7FF -moz-use-text-color;*/
	border:2px solid #E4E4E4;
    height: auto;
    margin-top: 10px;
    padding-top: 1px;	
}
#radientbox {
    -moz-border-radius-bottomright:5px;
	-moz-border-radius-topleft:5px;
	-webkit-border-bottom-right-radius:5px;
	-webkit-border-top-left-radius:5px;
	/*background-image:url(images/ProductListBgs3.jpg);
	background-repeat:repeat-x;*/
    background-image: -moz-linear-gradient(center bottom , #FFFFFF 15%, #E1F1FC 85%);
    border-color: #BFE7FF #BFE7FF -moz-use-text-color;
	border:2px solid #BFE7FF;
    height: auto;
    margin-top: 1px;
    padding-top: 1px;	
}
#tableborders
{
	-moz-border-radius-bottomright:5px;
	-moz-border-radius-topleft:5px;
	-webkit-border-bottom-right-radius:5px;
	-webkit-border-top-left-radius:5px;
}
.searchbg {
    background-image:url(images/search.png);
	background-repeat:no-repeat;
    height: 29px;
	border:0px;
	width:106px;
	cursor:pointer;
}
</style>
<?php
if($_GET['_sus']==1)
{
	$msg= '<div class="sucmsg"><img src="images/information.png" align="absmiddle" />&nbsp;Job  Posted Successfully </div>';
}
?>

  <!-- Begin mainWarpArea -->
  <div class="mainWarpArea">
   
    <div class="contentwarp">
    
      <!-- Begin contentwarpMiddle -->
      <div class="contentwarpMiddle">
       <div id="content" style="background-color:#FFF;float:left;width:950px;border:0px solid #CCC;">  
       <div align="center"><b><?php echo $msg;?></b></div>
       <table width="100%" border="0" align="center" style="padding-left:20px;" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top">&nbsp;</td>
    <td align="center" valign="top">&nbsp;</td>
    <td align="center" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td width="67%" align="center" valign="top">
    <form name="applyjob" method="post" onsubmit="return apply_job();" enctype="multipart/form-data">
  <table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
    <tr>
        <td align="center" valign="top">
    <table align="center" cellpadding="0" cellspacing="0" border="0" width="95%">
        <tr>
            <td height="30" align="left" valign="middle" class="font12" id="tableborders" style="padding-left:5px; font-weight:bold; background-color:#BFE7FF;">APPLY JOBS</td>
        </tr>
        <tr>
          <td align="left" valign="middle" class="font12">&nbsp;</td>
        </tr>
        <tr>
            <td>
                <table border="0" cellpadding="8" cellspacing="1" width="100%" id="tableborders" style="border:1px solid #E4E4E4;">
                   <tr>
                    <td width="36%" align="right" valign="middle" class="font12"> To</td>
                    <td width="5%" align="center" valign="middle" class="font12">&nbsp;</td>
                    <td width="59%" align="left" valign="middle" class="font12">
                    <?php 
					 $sql="select * from job_post where id='".$_GET['post_id']."'";
					$data=mysql_query($sql);
					$data=mysql_fetch_array($data);
					$to=$data['email'];
					echo $to;?>
                  </td>
                    </tr>
                    <tr>
                     <td align="right" valign="middle" class="font12"> Subject</td>
                     <td align="center" valign="middle" class="font12">&nbsp;</td>
                     <td align="left" valign="middle" class="font12">
                       <?php 
					  $sql="select c.category,js.sub_cat_name from job_category c 
					   inner join job_post j on c.id =j.cat_id 
					   inner join job_subcategory js on j.sub_cat_id=js.id where j.id='".$_GET['post_id']."'";
						
						$sql=mysql_query($sql);
						$tech=mysql_fetch_array($sql);
										 
						 $sub= 'Application for('.$tech[category].' - '.$tech[sub_cat_name].')';
						 echo  $sub;?>
                     </td>
                    </tr>
                   <tr>
                    <td align="right" valign="middle" class="font12"> Your Name</td>
                    <td align="center" valign="middle" class="font12">*</td>
                    <td align="left" valign="middle">
                      <input type="text" name="my_name" id="my_name" style="width:220px;" class="searchborder"  /></td>
                </tr>
                <tr>
                    <td align="right" valign="middle" class="font12"> Your Email Address</td>
                    <td align="center" valign="middle" class="font12">*</td>
                    <td align="left" valign="middle"> 
                      <input type="text" name="my_email" id="my_email" style="width:220px;" class="searchborder" /></td>
                </tr>
                 <tr>
                    <td align="right" valign="middle" class="font12">Your Phone Number</td>
                    <td align="center" valign="middle" class="font12">&nbsp;</td>
                    <td align="left" valign="middle"> 
                      <input type="text" name="my_contact" id="my_contact" style="width:220px;" class="searchborder"  /></td>
                </tr>
                 <tr>
                    <td align="right" valign="middle" class="font12"> Message</td>
                    <td align="center" valign="middle" class="font12">&nbsp;</td>
                    <td align="left" valign="middle"> 
                      <textarea  name="my_msg" class="searchborder" style="width:220px;"></textarea> </td>
                </tr> <tr>
                    <td align="right" valign="middle" class="font12"> Resume</td>
                    <td align="center" valign="middle" class="font12">*</td>
                    <td align="left" valign="middle"> 
                      <input type="file" name="attach" id="attach"/>    </td>
                </tr>
                
			<tr>
                   
                    <td colspan="3" align="center">
                    <input type="hidden" name="process" id="process" value=""/>
            		<input type="hidden" name="module" id="module" value="applyjob"/>
                    <input type="image" name="my_apply" src="images/applyjob.png"  />   </td>
                </tr>
            	</table>
									
	              </td> 
							</tr>
							<tr>
								<td align="left" height="30"> 
                                <div id="error_msg" style="color:#F00; width:300px;"></div>
                                </td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
       </form>
    </td>
    <td width="2%" align="center" valign="top">&nbsp;</td>
    <td width="31%" align="center" valign="top">
    <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" id="radientbox">
	   <form action="index.php" id="layout" method="get" name="searchfrm">
	   <input type="hidden" name="page" value="jobs">
	   <input type="hidden" name="view" value="view_ad_search">
	   <tr>
	     <td height="30" colspan="2" align="left" valign="middle" class="font12" style="font-size:14px; font-weight:bold;">
	       SUMMARY</td>
	     </tr>
	   <tr><td width="35%" align="left" valign="middle" class="font12" style="color:#666;"><b>Sector & Subsector</b></td>
	     <td width="65%" align="left" valign="middle" class="font12">
         <?php echo $tech["category"].' - '.$tech["sub_cat_name"];?>
         </td>
	   </tr>
	   <tr>
	     <td align="left" valign="middle" class="font12" style="color:#666;"><b>Ref No</b></td>
	     <td align="left" valign="middle" class="font12"><?php echo 'SS0'.$data['id']?></td>
	     </tr>
	   <tr>
	     <td align="left" valign="middle" class="font12" style="color:#666;"><b>Salary</b></td>
	     <td align="left" valign="middle" class="font12">
		 <?php echo number_format($data['salary'],2).' '.$data['salary_type'].' ('.$data['currency'].')'?></td>
	     </tr>
	   <tr>
	   <td align="left" valign="middle" class="font12" style="color:#666;"><b>Work Type</b></td>
	   <td align="left" valign="middle" class="font12"><?php echo $data['work_type']?></td>
	   </tr>
	   <tr>
	     <td align="left" valign="middle" class="font12" style="color:#666;"><b>Date Posted</b></td>
	     <td align="left" valign="middle" class="font12">
		 <?php 
		 $dd = explode(' ',$data['post_date']);
		 $dateArray=explode('-',$dd[0]);
		  echo $dateArray[2].'-'.$dateArray[1].'-'.$dateArray[0]; ?></td>
	     </tr>
	   <tr>
	     <td align="left" valign="middle" class="font12" style="color:#666;"><b>Ad Placed By</b></td>
	     <td align="left" valign="middle" class="font12"><?php echo $data['company_name']?></td>
	     </tr>
	   </form>
	   </table>
    </td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
</table>
      <div style="clear:both;"></div>
      
      
      <!-- Define wide ad unit. "google_afs_request_done" function populates ads.-->
    </div>
      </div>
      <!-- End contentwarpMiddle -->
      
      
      <!-- End contentwarp -->
       <?php include("includes/right_content.php");?>
      <div style="clear:both;"></div>
    </div>
    <!-- End mainWarpArea -->
    <div style="clear:both;"></div>
  </div>
